package com.ego.pojo.bo;

import com.ego.pojo.Sku;
import com.ego.pojo.Spu;
import com.ego.pojo.SpuDetail;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author Ares
 * @date 2020-11-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SpuBo extends Spu {
    private String categoryNames;
    private String brandName;

    private List<Sku> skus;
    private SpuDetail spuDetail;

    @Builder
    public SpuBo(Long id, Long brandId, Long cid1, Long cid2, Long cid3, String title, String subTitle, Boolean saleable, Boolean valid, Date createTime, Date lastUpdateTime, String categoryNames, String brandName, List<Sku> skus, SpuDetail spuDetail) {
        super(id, brandId, cid1, cid2, cid3, title, subTitle, saleable, valid, createTime, lastUpdateTime);
        this.categoryNames = categoryNames;
        this.brandName = brandName;
        this.skus = skus;
        this.spuDetail = spuDetail;
    }

    public SpuBo() {
    }
}
